<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
    <script src="jQuery-get.js"></script>
</head>
<body>
    <h1>练习添加元素四个方法</h1>
    <p class="append">练习添加元素append()方法</p>
    <p class="pre">添加元素prepend()方法</p>
    <p class="before">添加元素before方法</p>
    <p class="after">添加元素after方法</p>

    <button class="after_01">被选元素之后添加</button>
    <button class="before_01">被选元素之前添加</button>
    <button class="append_01">被选元素结尾添加</button>
    <button class="pre_01">被选元素开头添加</button>

    <div class="a">
        <div class="b">b</div>
        <div class="c">c</div>

    </div>

    <button class="append_02">append</button>
    <button class="pre_02">pre</button>
    <button class="before_02">before</button>
    <button class="after_02">after</button><br>
    
    <!-- 一次添加若干个新元素 -->
    <p class="moreElements">I love you.</p>
    <button onclick="afterText()">click me </button><br>

    <!-- 删除被选元素 -->
    <button class="delete_01">delete</button>
    <div class="delete_02" style="background-color: blue; width: 500px; height: 500px;">
        <p class="delete_03">删掉这段话</p>
        <p class="delete_04">这也是一句没有用的话</p>

    </div>



    
</body>
</html>